export const getMemoryList=(params)=>{
	console.log(params)
	return new Promise((resolve,reject)=>{
		uniCloud.callFunction({
			name:"get-memoryList",
			data:params
		}).then(res=>{
			resolve(res)
			
		}).catch(err=>{
			reject(err)
		})
	})
}
export const getMemoryOne=(params)=>{
	return new Promise((resolve,reject)=>{
		uniCloud.callFunction({
			name:"get-memoryOne",
			data:params
		}).then(res=>{
			resolve(res)
			
		}).catch(err=>{
			reject(err)
		})
	})
}

export const publishComments=(params)=>{
	return new Promise((resolve,reject)=>{
		uniCloud.callFunction({
			name:"publish-comment",
			data:params
		}).then(res=>{
			resolve(res)
			
		}).catch(err=>{
			reject(err)
		})
	})
}
export const getComment=(params)=>{
	return new Promise((resolve,reject)=>{
		uniCloud.callFunction({
			name:"get-comment",
			data:params
		}).then(res=>{
			resolve(res)
			
		}).catch(err=>{
			reject(err)
		})
	})
}
export const getMemoryVideo=(params)=>{
	return new Promise((resolve,reject)=>{
		uniCloud.callFunction({
			name:"get-memoryVideo",
			data:params
		}).then(res=>{
			resolve(res)
			
		}).catch(err=>{
			reject(err)
		})
	})
}

